//
//  FeedBase.h
//  SDDataTest
//
//  Created by sodao on 12-9-19.
//  Copyright (c) 2012年 sodao. All rights reserved.
//

#import <Foundation/Foundation.h>
#define SDServerTimeZone @"UTC"
#import "SBJsonParser.h"
#import "SBJsonWriter.h"
#import "NSObject+SBJSON.h"
#import "NSString+SBJSON.h"
#define kEncode_LastUpdateDate @"lastUpdateDate"

@interface FeedBase : NSObject<NSCoding>
{
    NSString* feedID;
    NSDate* lastUpdateDate;
}
@property (nonatomic, retain) NSString* feedID;
@property (nonatomic, retain) NSDate* lastUpdateDate;
-(NSDate*)getServerUTC:(long long)seconds;
-(NSDate*)getServerGMT:(long long)seconds;
-(NSString*)getFeedIDByObject:(id)obj;
-(NSString*)changeNetDataToString:(NSData*)data;
-(NSDictionary*)parserString:(NSString*)string;
-(NSString*)wiriteDicitionaryToString:(NSDictionary*)obj;
-(id)initWithData:(NSData*)data;
-(id)initWithString:(NSString*)string;
-(id)initWithDictionary:(NSDictionary*)dictionary;

-(id)getFeedByDictionary:(NSDictionary*)dictionary;

@end
